<form class="layui-form" method="post" action="category_update.html">
  <div class="layui-form-item">
    <label class="layui-form-label">栏目名</label>
    <div class="layui-input-block">
      <input type="text" name="catename" required  lay-verify="required" placeholder="请输入栏目名" autocomplete="off" class="layui-input" value="{$list.catename}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">选择框</label>
    <div class="layui-input-block">
      <select name="fid" lay-verify="required">
        <option value="0">一级分类</option>
        {volist name="flist" id="vo"}
          {if condition="$list.fid == $vo.id"}
            <option value="{$vo.id}" selected>{$vo.catename}</option>
            {else\}
            <option value="{$vo.id}">{$vo.catename}</option>
          {/if}          
        {/volist}
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">排序</label>
    <div class="layui-input-block">
      <input type="text" name="order" required  lay-verify="required" placeholder="请输入数字" autocomplete="off" class="layui-input" value="{$list.order}">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">     
      <input type="button" class="layui-btn" value="立即提交" onclick="post('更改成功','检查栏目是否存在')"> 
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
  <input type="hidden" name="id" value="{$list.id}">
</form>
<script> 
layui.use('form', function(){
  var form = layui.form;  
  form.render();
  form.on('submit(*)', function(data){
    return post('更改成功','检查栏目是否存在');
  });
});
</script>